<?php
include 'superiore.php';
$pagina="Dispositivi";


$sql="SELECT DISTINCT Device FROM Log_Users;";
$query=mysql_query($sql);

while($row = mysql_fetch_array($query))
		{
			$riga = $row['Device'];
			$sql1="SELECT * FROM Log_Users WHERE Device ='".$riga."';";
			$query1=mysql_query($sql1);
			$user_device = mysql_num_rows($query1);
			$device = $row['Device'];
			$somecontent = $somecontent . "<slice title=\"$device\">$user_device</slice>";			
		}
		
		
include 'inferiore.php';

?>